package com.bit.java1;

public class Test6 {

    public static boolean qqiShu(int[] array) {
        int left = 0;
        int time = 3;
        while(left < array.length) {
            int flag = 0;
            while(time != 0) {
                if(array[left] % 2 != 0) {
                    flag++;
                }
                time--;
            }
            if(flag == 3) {
                return true;
            } else {
                left++;
            }
        }
        return false;
    }

    public static void main(String[] args) {
        int[] array = {1,2,34,3,4,5,7,23,12};
        boolean p = qqiShu(array);
        System.out.println(p);
    }

}
